#ifndef ROBOTDIALOG_H
#define ROBOTDIALOG_H

#include <QDialog>
#include <QPushButton>
#include <QTableWidget>
#include <QMessageBox>
#include <models/robot.h>
#include "popupdialog.h"
#include <QStandardItemModel>

namespace Ui {
class RobotDialog;
}

class RobotDialog : public PopupDialog
{
    Q_OBJECT

public:
    explicit RobotDialog(Robot * pRobot = nullptr, QWidget *parent = nullptr);
    ~RobotDialog();

private slots:
    void on_close_btn_clicked();
    void on_pushButton_clicked();

    void on_ok_btn_clicked();

    void on_cancel_ban_clicked();

private:
    void scaleWidgets(QWidget *widget, double xScale,double yScale);
    Ui::RobotDialog *ui;
    Robot * m_pRobot = NULL;
    void addVideoRow(const QString &name = "", const QString &url = "");
    QStandardItemModel* m_videoModel = nullptr;
};

#endif // ROBOTDIALOG_H
